package cn.tedu.tmall.admin.content.dao.mapper;


import cn.tedu.tmall.admin.content.pojo.po.CategoryPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Mapper;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Mapper
public interface CategoryMapper extends BaseMapper <CategoryPO>{
    Long countCategoryByName(@NotBlank(message = "类别名称不能为空") @Size(min = 1,max = 4,message = "类别名称不符合规定") String name);

}
